package com.xw.db137.service.impl;

import com.xw.db137.entity.Menu;
import com.xw.db137.mapper.MenuMapper;
import com.xw.db137.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
  * @Author: xw
  * @CreateTime: 2024/12/24
  * @Description: 用户
  * @Version: 1.0
  */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Override
    public List<Menu> selectMenuByUserId(int id) {
        return this.baseMapper.selectMenuByUserId(id);
    }

    @Override
    public int deleteMenu(String id) {
        return this.baseMapper.deleteMenu(id);
    }

    @Override
    public int updateMenuById(Menu menu) {
        return this.baseMapper.updateMenuById(menu);
    }

    @Override
    public int insertMenu(Menu menu) {
        return this.baseMapper.insertMenu(menu);
    }
}
